<%@include file="menu/util.jsp" %>
<%@page contentType="text/html; charset=iso-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="url" value="${requestScope.url}" />
<%--<c:set var="params" value="${requestScope.params}" />--%>
<c:set var="paramsLink" value="${requestScope.paramsLink}" />
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>PopableWindow</title>
        <jsp:include page="../jsp/menu/header.jsp">
            <jsp:param name="v" value="login" />
        </jsp:include>

        <link type="text/css" rel="stylesheet" href="jsp/css/screen.css" />
        <link type="text/css" rel="stylesheet" href="jsp/css/eggplant/jquery-ui-1.8.14.custom.css" />
        <script type="text/javascript">
            $(document).ready(function(){
                <%--
                $.get('${url}', ${params}, function(data){
                    $("#popableContent").html(data).show('blind','slow');
                });
                --%>
                
                $("#popableContent").attr("src","${url}?${paramsLink}").css("display","block").animate({opacity:1.0}, 1000);

                $("a.popup").click(function(){
                    window.open('${url}?${paramsLink}', 'Dashboard', 'width=940,height=660,scrollbars=no');
                    parent.$.fn.colorbox.close();
                    return false;
                });

                $("a.close").click(function(){
                    parent.$.fn.colorbox.close();
                    return false;
                });
            });
        </script>
    </head>
    <body>
        <div id="popableContainer">
            <ul id="popableToolbar">
                <li style="float:left"><a class="close" href="#">regresar</a></li>
                <li><a class="popup" href="#">maximizar</a></li>
            </ul>
            <iframe id="popableContent" style="display:none; opacity:0;" width="100%" height="100%">

            </iframe>
        </div>
    </body>
</html>
